package com.tungse.study.rpc.framework;

import com.tungse.study.rpc.framework.entity.RpcUri;

import java.util.List;
import java.util.Random;

public class LoadBalance {

    public static RpcUri getServiceUri(List<RpcUri> serviceUri) {
        return serviceUri.get(new Random().nextInt(serviceUri.size()));
    }
}
